package com.cy.src.client2.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.Parcel;
import android.os.RemoteException;

import com.cy.src.aidl.IMyService;
import com.cy.src.aidl.IMyServiceCallback;

public class ClientService extends Service {
    public ClientService() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        return new MyBinder();
    }

    public static class MyBinder extends IMyService.Stub {

        @Override
        public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException {

        }

        @Override
        public String helloWorldAidl(String name) throws RemoteException {
            return null;
        }

        @Override
        public void sendData(String str) throws RemoteException {
//            Bundle;
        }

        @Override
        public void registerCallback(IMyServiceCallback callback) throws RemoteException {

        }

        @Override
        public void unregisterCallback(IMyServiceCallback callback) throws RemoteException {

        }

        @Override
        public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
            return super.onTransact(code, data, reply, flags);
        }
    }

}
